package com.example.travel.mapper;


import com.example.travel.bean.ActivityBean;
import com.example.travel.bean.AdminBean;
import com.example.travel.bean.SiteBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ActivityMapper {
    List<ActivityBean> getActivityList();
    int addActivity(ActivityBean activity);
    int deleteActivity(int activityID);
    int updateActivity(ActivityBean activity);

    ActivityBean getActivityById(int activityID);
    
    List<ActivityBean> getActivityListWithPagination(String searchKeyword, int offset, int pageSize);
    int getActivityCount(String searchKeyword);
}
